package com.zyc.app.woa.utils;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * Author: yingchang.zhang
 * Date  : 2014/12/24
 */
public class AsyncTaskExecutor {
    private static ExecutorService sExecutor;
    private static final int THREAD_SIZE = 5;

   public static void init() {
       sExecutor = Executors.newFixedThreadPool(THREAD_SIZE);
   }

    public static void execute(Runnable runnable) {
        sExecutor.execute(runnable);
    }
}
